//
//  LVThreeBtnTool.h
//  LEVE
//
//  Created by 上官惠阳 on 2017/2/7.
//  Copyright © 2017年 dashuju. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger,LVThreeBtnDirection){
    LVThreeBtnLeft,
    LVThreeBtnCenter,
    LVThreeBtnRigth
};
@class LVThreeBtnTool;

@protocol LVThreeBtnToolDelegate <NSObject>
- (void)clickedThreeBtnTool:(LVThreeBtnTool *)threeBtnTool direction:(LVThreeBtnDirection)direction;
@end

@interface LVThreeBtnTool : NSObject
+ (id)shareThreeBtn;

- (void)createThreeBtnAtView:(UIView *)view delegate:(id<LVThreeBtnToolDelegate>)delegate;
//底部滚动条滚动 dir为滚动方向
- (void)scrollToDirection:(LVThreeBtnDirection)dir;
- (void)showInTheMiddle;//显示在中间页面
- (void)showInBothSides;//显示在两边页面
- (void)showOnlyMiddle;//只显示一个中部按钮
//在某个按钮下面显示其他视图
- (void)showOtherViewUnderDirection:(LVThreeBtnDirection)dir distance:(CGFloat)distance;

- (void)hideAllBtn:(BOOL)isHide;
- (void)hideMiddleBtn:(BOOL)isHide;
- (void)hideOnlyMiddleBtn:(BOOL)isHide;






- (UIButton *)centerBtn;
//layerAnimation Related
- (void)performCenterBtnWaveAnimation;
- (void)removeCenterBtnWaveAnimation;
@property (nonatomic, assign) BOOL isCenterBtnAnimated;
@end
